package com.taotao.common.resp;

import lombok.Data;

/**
 * Created by zzb on 2017/11/9.
 */
@Data
public class ImageResult {

    private Integer error;

    private String url;

    private String message;

    public ImageResult(){}

    public ImageResult(Integer error,String url) {
        this.error = error;

        if(error == 0) {
            this.url = url;
        }else {
            this.message = url;
        }
    }

}
